<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('订单匹配计划修改')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-ncWork-edit">
        <input id="cforderId" name="cforderId" th:value="${cforderId}" type="hidden">


        <div class="form-group">
            <label class="col-sm-3 control-label">计划：</label>
            <div class="col-sm-8">
                <select readonly id="post" name="planId" class="form-control m-b select2-multiple">
                    <option th:each="plan:${plans}" th:value="${plan.planId}"
                            th:text="${plan.planCode} +'-'+ ${plan.cropNameCn}+'-'+${plan.cropVarietiesCn}+'-'+${#dates.format(plan.planTime, 'yyyy-MM-dd')}" th:selected="${plan.flag}"></option>
                </select>
            </div>
        </div>
    </form>
    <div>
    </div>
</div>
<div th:include="include::footer"></div>

<script th:inline="javascript" type="text/javascript">
    var prefix = ctx + "system/ncOrderCf";

    $("#form-ncWork-edit").validate({
        rules: {
            xxxx: {
                required: true,
            },
        },
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/editOrderPlan", $('#form-ncWork-edit').serialize());
        }
    }
</script>
</body>
</html>
